{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "ExecuteTime": {
     "end_time": "2025-02-08T02:59:07.524050100Z",
     "start_time": "2025-02-08T02:59:07.035458800Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2025-02-08 11:03:05,609 [INFO] test: Index(['排名', '板块名称', '板块代码', '最新价', '涨跌额', '涨跌幅', '总市值', '换手率', '上涨家数', '下跌家数',\n",
      "       '领涨股票', '领涨股票-涨跌幅'],\n",
      "      dtype='object')\n"
     ]
    }
   ],
   "source": [
    "import logging\n",
    "from utils.logger import ConsoleLogger\n",
    "import akshare as ak\n",
    "logger = ConsoleLogger(name=\"test\", level=logging.INFO)\n",
    "\n",
    "## 对比 stock ，index ，industry， concept\n",
    "concept_df = ak.stock_board_concept_name_em()\n",
    "logger.info(concept_df.columns)\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2025-02-08 11:03:28,272 [INFO] test: Index(['排名', '板块名称', '板块代码', '最新价', '涨跌额', '涨跌幅', '总市值', '换手率', '上涨家数', '下跌家数',\n",
      "       '领涨股票', '领涨股票-涨跌幅'],\n",
      "      dtype='object')\n"
     ]
    }
   ],
   "source": [
    "industy_df = ak.stock_board_industry_name_em()\n",
    "logger.info(industy_df.columns)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2025-02-08 11:04:56,052 [INFO] test: Index(['序号', '代码', '名称', '最新价', '涨跌幅', '涨跌额', '成交量', '成交额', '振幅', '最高', '最低',\n",
      "       '今开', '昨收', '量比'],\n",
      "      dtype='object')\n"
     ]
    }
   ],
   "source": [
    "index_df = ak.stock_zh_index_spot_em()\n",
    "logger.info(index_df.columns)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "base",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
